package com.ifcar.app.util;

/**
 * ErrorCode class <br/>
 * 
 * 服务器错误 码、错误信息以及key
 * @author nxlixa
 *
 */
public class EC {
	
	/**
	 * code
	 */
	public static final String CODE = "code";
	
	/**
	 * message
	 */
	public static final String MESSAGE = "message";
	
	/**
	 * success
	 */
	public static final String SUCCESS = "success";
	
	/**
	 * login success
	 */
	public static final String MSG_LOGIN_SUCCESS = "login success";
	
	/**
	 * fail
	 */
	public static final String FAIL = "fail";
	
	/**
	 * error
	 */
	public static final String ERROR = "error";
	
	/**
	 * 邮箱地址错误
	 */
	public static final int CODE_EMAIL_FORMAT_ERROR = 1101;
	public static final String MSG_EMAIL_FORMAT_ERROR = "email format error";
	
	/**
	 * 电话号码格式错误
	 */
	public static final int CODE_PHONE_FORMAT_ERROR = 1102;
	public static final String MSG_PHONE_FORMAT_ERROR = "phone number format error";
	
	/**
	 * 邮箱已存在
	 */
	public static final int CODE_EMAIL_ALREADY_EXIST = 1103;
	public static final String MSG_EMAIL_ALREADY_EXIST = "email already exist";
	
	/**
	 * 电话号码已存在
	 */
	public static final int CODE_PHONE_ALREADY_EXIST = 1104;
	public static final String MSG_PHONE_ALREADY_EXIST = "phone number already exist";
	
	/**
	 * 邮箱不存在
	 */
	public static final int CODE_EMAIL_NOT_EXIST = 1105;
	public static final String MSG_EMAIL_NOT_EXIST = "email not exist";
	
	/**
	 * 电话不存在
	 */
	public static final int CODE_PHONE_NOT_EXIST = 1106;
	public static final String MSG_PHONE_NOT_EXIST = "phone number not exist";
	
	/**
	 * 密码长度不合法
	 */
	public static final int CODE_PASSWORD_LENGTH_INVALID = 1107;
	public static final String MSG_PASSWORD_LENGTH_INVALID = "password length invalid";
	
	/**
	 * 密码错误
	 */
	public static final int CODE_PASSWORD_ERROR = 1108;
	public static final String MSG_PASSWORD_ERROR = "password error";
	
	/**
	 * 重复关注
	 */
	public static final int CODE_REPEAT_FOLLOW = 1109;
	public static final String MSG_REPEAT_FOLLOW = "repeat follow";
	
	/**
	 * 不能关注自己
	 */
	public static final int CODE_FOLLOW_SELF = 1110;
	public static final String MSG_FOLLOW_SELF = "can't follow your self";
	
	/**
	 * 服务器错误
	 */
	public static final int CODE_SERVER_ERROR = 1111;
	public static final String MSG_SERVER_ERROR = "server error";
	
	/**
	 * 参数错误
	 */
	public static final int CODE_PARAMTER_ERROR = 1112;
	public static final String MSG_PARAMTER_ERROR = "paramter error";

	/**
	 * 问题不存在
	 */
	public static final int CODE_QUESTIOIN_NOT_EXIST_ERROR = 1113;
	public static final String MSG_QUESTIOIN_NOT_EXIST_ERROR = "question not exist";
	
}
